package com.xdtech.hotel.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-04-04 11:16:36
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="HOTEL_ROOM")
public class Room extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="ROOM_NO")
	private String roomNo;
	@Column(name="STATUS")
	private String status;
	@Column(name="NAME")
	private String name;
	@Column(name="TYPE")
	private String type;
	@Column(name="SERVICE_AREA")
	private String serviceArea;
	@Column(name="FLOOR")
	private String floor;
	@Column(name="CONFIG_INFO")
	private String configInfo;
	@Column(name="CONFIG_XML_INFO")
	@Lob
	private String configXmlInfo;
	@OneToOne
    @JoinColumn(name="DEVICE_ID",insertable=true,unique=true)  
	private Device device;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStatus() {
		return status;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setServiceArea(String serviceArea) {
		this.serviceArea = serviceArea;
	}
	public String getServiceArea() {
		return serviceArea;
	}
	public Device getDevice() {
		return device;
	}
	public void setDevice(Device device) {
		this.device = device;
	}
	public String getConfigXmlInfo() {
		return configXmlInfo;
	}
	public void setConfigXmlInfo(String configXmlInfo) {
		this.configXmlInfo = configXmlInfo;
	}
	public String getConfigInfo() {
		return configInfo;
	}
	public void setConfigInfo(String configInfo) {
		this.configInfo = configInfo;
	}
	public String getFloor() {
		return floor;
	}
	public void setFloor(String floor) {
		this.floor = floor;
	}
	
	
}
